package com.smarthome.core.deviceManager;

import java.util.List;

import com.smarthome.domain.bean.ShEquipmentUser;
import com.smarthome.domain.vo.api.UserDeviceBean;
import com.smarthome.domain.vo.boss.DataGrid;
import com.smarthome.domain.vo.boss.PageHelper;

/**
 * 设备与用户管理server类
 * @author szc
 *
 */
public interface EquipmentUserService {

	/**
	 * 得到设备通信列表--分页
	 * @param deviceSupplier
	 * @param page
	 * @return
	 */
	DataGrid dataGrid(ShEquipmentUser equipmentUser, PageHelper page);
	
	
	/**
	 * 新增信息
	 * @param deviceSupplier
	 */
	void add(ShEquipmentUser equipmentUser);
	
	/**
	 * 通过主键id，得到对象
	 * @param id
	 * @return
	 */
	ShEquipmentUser queryShEquipmentUserById(Long id);
	
	/**
	 * 更改
	 * @param 
	 */
	void edit(ShEquipmentUser equipmentUser);
	
	/**
	 * 根据ID 删除
	 * @param id
	 */
	void delete(Long id);
	
	
	/**
	 * 得到信息list
	 * @param equipmentInfo
	 * @return
	 */
	List<ShEquipmentUser> queryShEquipmentUserList(ShEquipmentUser equipmentUser);
	
	/**
	 * 得到用户的相关终端设备
	 * @param userDeviceBean
	 * @return
	 */
	List<UserDeviceBean> queryUserDeviceBeanList(java.util.HashMap params);
	
}
